package com.zx.erp.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.zx.erp.purchase.bean.CBrand;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 胡展旺
 * @since 2021-11-17
 */
public interface CBrandService extends IService<CBrand> {

    //分页查询所有品牌
    Page<CBrand> getBrandListByCondition(CBrand cBrand, Integer pageNo, Integer pageSize);

    //查询单个品牌
    public CBrand getOneBrandByCondition(Integer brandId);

    //添加品牌
    public boolean brandAdd(CBrand brand);

    //修改品牌状态
    public boolean brandUpdate(CBrand brand);

    PageInfo<CBrand> findAll(CBrand cBrand, Integer pageNo, Integer pageSize);
}
